package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("HelloJob")
public class HelloJob {

    @Autowired
    private IContractService contractService;

    public void startContract(){
        contractService.myJob();
    }
}